__author__ = 'x0r'
import os
import cgi
import sys
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler

class customHTTPServer(BaseHTTPRequestHandler):
    def do_GET(self):
        self.send_response(200)
        self.send_header('Content-type', 'text/html')
        self.end_headers()
        self.wfile.write('<HTML><body>Get!</body></HTML>')
        return

    def do_POST(self):
        pass



def main():
    try:
        server = HTTPServer(('',5555),customHTTPServer)
        print 'server started at port 5555'
        server.serve_forever()
    except KeyboardInterrupt:
        server.socket.close()

if __name__=='__main__':
    main()